package com.example.demo1.service.impl.service;


import com.example.demo1.common.ServerResponse;
import com.example.demo1.entity.BaFunction;

import java.util.List;

public interface FunctionService {

    ServerResponse addFunction(BaFunction function);
    ServerResponse validateFunctionName(String functionName);
    ServerResponse deleteFunction(Integer functionId);
    ServerResponse updateFunction(BaFunction function);
    ServerResponse validateFunctionNameExSelf(String functionName, Integer functionId);
    ServerResponse<List<BaFunction>> getAllFunctions();
    ServerResponse getAllFunctionsByParamLimit(String searchStr, Integer pageNum, Integer pageSize);

}
